module.exports = {
  userFormateError: {
    code: "10001",
    message: "用户名或密码为空",
    result: "",
  },
  userAlreadyExited: {
    code: "10002",
    message: "用户已经存在",
    result: "",
  },
  userRegisterError: {
    code: "10003",
    message: "用户注册错误",
    result: "",
  },
  userDoesNotExist: {
    code: "10004",
    message: "用户不存在",
    result: "",
  },
  userLoginError: {
    code: "10005",
    message: "用户登录失败",
    result: "",
  },
  invalidPassword: {
    code: "10006",
    message: "密码不匹配",
    result: "",
  },
  tokenExpiredError: {
    code: "10101",
    message: "token已过期",
    result: "",
  },
  invalidToken: {
    code: "10102",
    message: "无效的token",
    result: "",
  },
  fileUploadError: {
    code: "10201",
    message: "帖子图片上传失败",
    result: "",
  },
  unSupportedFileType: {
    code: "10202",
    message: "您上传的文件不是图片哦",
    result: "",
  },
  publishTopicError: {
    code: "10203",
    message: "发布帖子失败",
    result: "",
  },
  getTopicError: {
    code: "10204",
    message: "得到所有帖子信息失败",
    result: "",
  },
  postCommentError: {
    code: "10205",
    message: "发布帖子评论失败",
    result: "",
  },
  getCommentsError: {
    code: "10206",
    message: "获取帖子相关评论回复失败",
    result: "",
  },
  getAllTopicsAndCommentsError: {
    code: "10207",
    message: "获取所有的帖子及其评论回复失败",
    result: "",
  },
  collectTopicError: {
    code: "10208",
    message: "用户收藏帖子失败",
    result: "",
  },
  deleteCollectTopicError: {
    code: "10209",
    message: "用户取消收藏帖子失败~",
    result: "",
  },
  getCollectTopicsError: {
    code: "10210",
    message: "获取该用户所有收藏的帖子失败",
    result: "",
  },
  addLikesError: {
    code: "10211",
    message: "点赞帖子失败",
    result: "",
  },
  dislikesError: {
    code: "10212",
    message: "取消点赞帖子失败",
    result: "",
  },
  deleteTopicError: {
    code: "10212",
    message: "删除帖子失败",
    result: "",
  },
  deleteQuestionError: {
    code: "10301",
    message: "删除题库题目失败",
    result: "",
  },
};
